home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 007a / jcal753.zip / JCAL.TXT < prev    next >
Text File  |  1991-09-14  |  40KB  |  821 lines

  1.                        JCAL - THE JEWISH CALENDAR PROGRAM
  2.                        ==================================
  3.  
  4.  
  5. ABOUT THIS PROGRAM
  6.  
  7.     JCAL75.EXE is a program that calculates dates of the Jewish
  8. calendar. It was compiled with Turbo Pascal 5.5 and is based on three
  9. descriptions of the Jewish calendar which I recommend as additional
  10. reading on the subject:
  11.  
  12.    1.   The Jewish Calendar Mystery Dispelled by George Zinberg, Vantage
  13.         Press, 1963
  14.  
  15.    2.   The Encyclopedia Judaica, "Calendar"
  16.  
  17.    3.   The Comprehensive Hebrew Calendar by Arthur Spier, Behrman House,
  18.         Inc.
  19.         
  20.  
  21.                         THE JEWISH CALENDAR
  22.                         ===================
  23. HISTORY
  24.  
  25.     In biblical days, time was measured by observation of both the sun's
  26. pattern of motion and the lunar phases.  The solar motion served to
  27. establish the duration of the year while the waxing and waning of the
  28. moon was a practical way to subdivide the year into months.  But,
  29. unfortunately, the solar year and the lunar cycles are not synchronized.
  30. While the present calendar (Gregorian) had its roots in the lunar cycle
  31. as evidenced by the length of the months and even the word "month"
  32. itself, it was adjusted to the solar year in order to maintain the
  33. seasonal references - its relation to the lunar phases was eventually
  34. abandoned.  The Jewish calendar, on the other hand, maintains both the
  35. lunar and solar relationship and also adjusts for certain religious
  36. requirements.  The establishment of such a calendar was a remarkable
  37. accomplishment for a people living more than 2,000 years ago.
  38.  
  39.     Today it is known that one solar year is approximately 365 days, 5
  40. hours, 48 minutes and 46 seconds.  The lunar cycle is approximately 29
  41. days, 12 hours, 44 minutes and 3 1/3 seconds (actually 2.841 seconds by
  42. current measurement).  Therefore, twelve lunar months are 354 days, 8
  43. hours, 48 minutes and 40 seconds, which falls short of a solar year by
  44. almost eleven days (10 days, 21 hours and 6 seconds).  This difference
  45. will play an important role in the calendar calculations.
  46.  
  47.     Of course, a practical calendar must have a whole number of days in
  48. each month.  Since the lunar month is very nearly 29 1/2 days, a
  49. calendar that has twelve months alternating between 29 and 30 days
  50. (averaging 29 1/2) would essentially follow the lunar cycle.  In fact,
  51. this sequence forms the basis for the Jewish calendar.  Such a year
  52. would have a length of 354 days, short by about eleven days from the
  53. solar year.  If this were left uncorrected the seasons would quickly
  54. drift from their relationship to the months.  However, many Jewish
  55. festivals are related to agricultural events and must occur during
  56. specific seasons.
  57.  
  58.     During the period of the Second Temple (built between 519 and 516
  59. B.C.) and for three centuries after its destruction, a council of the
  60. Sanhedrin (the governing body of the time) decreed when the new months
  61. would begin and when adjustment was needed to compensate for the
  62. seasonal shifts.  The start of each month was established by observing
  63. the arrival of the new moon.  The council would meet on the thirtieth
  64. day of the month to hear the testimony of "two trustworthy witnesses" as
  65. to whether they observed the new crescent moon on that day.  If they
  66. had, that day was declared the first of the new month.  If they did not,
  67. then the next day was declared the first of the new month.
  68.  
  69.     Once the council had made their declaration the new month was
  70. announced by means of fire signals to inform the communities outside of
  71. Jerusalem.  Distant villages which could not always receive prompt
  72. notice would celebrate the new moon for two days to be sure they had
  73. included the right day.
  74.  
  75.     The council was empowered to compensate for the solar and lunar
  76. differences by mandating that a "leap month" be inserted in the calendar
  77. every second or third year as the eleven day difference accumulated.
  78. They allowed for some flexibility, considering astronomical facts as
  79. well as religious and agricultural requirements. They observed the state
  80. of the crops, considered the need to make the Passover journey by way of
  81. muddy roads and tried to insert the leap month in an advantageous way.
  82.  
  83. PRESENT JEWISH CALENDAR
  84.  
  85.     In 432 B.C. the Athenian astronomer Meton reformed the Athenian
  86. calendar based on an approximate relationship between the solar and
  87. lunar cycles.  He had observed that every nineteen years the occurrences
  88. of the new and full moons returned to the same time with respect to the
  89. solar cycle.  This pattern is known as the Metonic cycle.  Actually, in
  90. nineteen years the annual difference (10 days, 21 hours and 6 seconds)
  91. accumulates to 206 days, 15 hours, 1 minute and 54 seconds.  This
  92. accumulation is equal (within two hours) to seven lunar months (which
  93. come to 206 days, 17 hours, 8 minutes and 23 1/3 seconds).  So if seven
  94. lunar months were added over a nineteen year period the lunar and solar
  95. cycles could be more or less maintained in synchronization.
  96.  
  97.     For the early Jews the day began and ended at sundown rather than at
  98. midnight.  (Genesis says, "... and there was evening, and there was
  99. morning, one day").  For purposes of the Jewish calendar it still does.
  100. The new day (and hence the start of the Sabbath or a holiday) begins at
  101. sundown.  However, for calendar calculations the day is considered to
  102. begin and end at 6 o'clock in the evening, Jerusalem time.  The hour of
  103. 6 pm is therefore considered hour "zero".  The hour was subdivided into
  104. 1080 "parts".  So a part was 3 1/3 seconds and there were 18 parts in a
  105. minute. Each part was divided into 76 "moments".  So there were 22.8
  106. moments in a second.  Many texts still refer to the use of "parts" but
  107. "seconds" will be used for the calculations described below.
  108.  
  109.    The chronology of the bible was calculated directly from the bible
  110. text and is given in the Talmud (a collection of Rabbinic writing
  111. created during the Hellenistic Age).  The rabbis derived the following
  112. chronology:
  113.  
  114. Year        Event                        Comment
  115. ======     ========                     ================
  116.    1        Adam                         The Creation
  117. 1057        Noah                         1056 years from Adam to Noah
  118. 1949        Abraham                      892 years from Noah to Abraham
  119. 2049        Isaac                        100 years from Abraham to Isaac
  120. 2239        Entrance into Egypt          190 years from Isaac to Egypt
  121. 2449        The Exodus                   210 years from Egypt to Exodus
  122. 2929        Dedication of First Temple   480 years from Exodus to 1st Temple
  123. 3339        Destruction of First Temple  410 years duration of 1st Temple
  124. 3409        Return to Israel             70 years of Babylonian Exile
  125. 3829        Destruction of Second Temple 420 years duration of 2nd Temple
  126.  
  127.     Ancient names for the months are mentioned in Deuteronomy and
  128. Kings I but little else is known about the names of the months until
  129. the period of the Kings.  At that time there was a reformation of the
  130. calendar and the months were referred to by their ordinal numbers
  131. (first, second, third month, etc.) and the start of the year was changed
  132. to the spring.  By the end of the period of the Second Temple the months
  133. had again received names which are used today.  The names are Babylonian
  134. and were probably adopted shortly after the Babylonian Exile.
  135.  
  136.     The Bible refers to Nisan, the month of spring and Passover, as the
  137. first month.  Ancient writings actually refer to four different new
  138. years: Nisan 1 for Kings and festivals, Elul 1 for tithing of animals,
  139. Tishri 1 for the calendar and Shevat 1 or 15 for trees.  Tishri 1 is now
  140. observed as the beginning of the year.
  141.  
  142.     There are numerous transliterations for Hebrew words.  The spellings
  143. used here are those used in The Encyclopaedia Judaica.
  144.  
  145. THE CALENDAR CALCULATIONS
  146.  
  147.     The rules for the present Jewish calendar system are believed to
  148. have been published by the patriarch Hillel II in the year 358, the
  149. Jewish year 4119.  Rather than having the Sanhedrin determine when to
  150. add the leap month (Adar II), it was decided to introduce it exactly
  151. seven times every nineteen years.  Furthermore, it was established that
  152. leap years would be the 3rd, 6th, 8th, 11th, 14th, 17th and 19th years
  153. of the cycle.  Adar II, a 29-day month, would be added after Adar.  Adar
  154. would be increased by one day to 30 days in a leap year giving it 30
  155. days more than the ordinary year.
  156.   
  157.    Thus the Calendar would appear as shown in Table 1.
  158.  
  159.    Table 1  - Basis of Jewish Calendar
  160.           Tishri    30 days
  161.           Heshvan   29 days
  162.           Kislev    30 days
  163.           Tevet     29 days
  164.           Shevat    30 days
  165.           Adar      29 days (30 on a leap year)
  166.           Adar II   29 days (inserted 7 times every 19 years)         
  167.           Nisan     30 days
  168.           Iyyar     29 days
  169.           Sivan     30 days
  170.           Tammuz    29 days
  171.           Av        30 days
  172.           Elul      29 days
  173.  
  174.     Such a calendar would be reasonably accurate, with months based on
  175. the lunar cycle and with a correction for the solar year.  To understand
  176. the other adjustments however, it is necessary to consider the Jewish
  177. holidays. The following table shows the traditional Jewish holidays.
  178.  
  179.                Table 2  -  Jewish Holidays
  180.     Hebrew Name         Description         Month            Note
  181.    ================================================================
  182.    Rosh Hashanah       New Year            Tishri 1 & 2
  183.    Tzom Gedaliah       Fast of Gedaliah    Tishri 3            1
  184.    Yom Kippur          Day of Atonement    Tishri 10
  185.    Succoth             Tabernacles         Tishri 15-21
  186.    Hoshanah Rabba      Festival of Willows Tishri 21
  187.    Sh'mini Atzeret     Closing Holiday     Tishri 22
  188.    Simchat Torah       Rejoicing of Torah  Tishri 23
  189.    Hanukkah            Festival of Lights  Kislev 25 (8 days)
  190.    Tzom Tevet          Siege of Jerusalem  Tevet 10
  191.    Tu B'Shevat         New Year for Trees  Shevat 15
  192.    Ta'anit Esther      Fast of Esther      Adar 13             2,3
  193.    Purim               Feast of Lots       Adar 14             3
  194.    Ta'anit Bechorim    Fast of First Born  Nisan 14            2
  195.    Pesach              Passover            Nisan 15-22
  196.    Yom Hashoah         Holocaust Commem.   Nisan 27            4
  197.    Yom Haatzmaut       Israel Ind. Day     Iyyar 5             2,5
  198.    Lag B'Omer          33rd Day of Omer    Iyyar 18
  199.    Shavuot             Festival of Weeks   Sivan 6 & 7
  200.    Tzom Tammuz         Fast of Tammuz      Tammuz 17           1
  201.    Tisha B'Av          Destr. of Temple    Av 9                1
  202.           
  203.  
  204.  
  205. Notes
  206. 1. If date occurs on Sabbath, it takes place on following day, Sunday.
  207. 2. If date occurs on Sabbath, it takes place on preceding Thursday.
  208. 3. Adar II if leap year.
  209. 4. Established 1951.
  210. 5. Established 1949. 
  211.  
  212.     Two problems exist with respect to these holidays.  First, since Yom
  213. Kippur (Tishri 10) is a major fast day, it is undesirable for it to fall
  214. on a Friday or Sunday, adjacent to the Sabbath, because of limitations
  215. that would be imposed on the preparation for (or breaking of) the fast.
  216. Second, Hoshanah Rabba (Tishri 21) should not fall on a Saturday since
  217. the Sabbath laws would interfere with certain rituals.  Both of these
  218. holidays occur in the first month, Tishri, so it can be said that Rosh
  219. Hashanah (Tishri 1, the New Year's Day) must not fall on a Wednesday,
  220. Friday, or Sunday.
  221.  
  222.     The Jewish calendar calculation is based on the following three
  223. steps. First, the new moon date and time (called the Molad) is
  224. calculated and the start of each month is first targeted for that date.
  225. Second, the day of Rosh Hashanah is adjusted according to rules
  226. discussed below.  Third, a leap month is periodically introduced to
  227. maintain synchronization with the solar year.  However, the processes of
  228. adjusting the occurrence of Rosh Hashanah is somewhat complex.  It is
  229. accomplished by lengthening or shortening the prior year by one day.
  230. The month of Heshvan may be lengthened to 30 days and Kislev may be
  231. shortened to 29.  When Heshvan is lengthened the year is called "full"
  232. and when Kislev is shortened the year is called "deficient".  Otherwise
  233. it is called "normal".  This means that three "types" of regular years
  234. can exist having totals of 353, 354 or 355 days.  Furthermore, a leap
  235. year can also be deficient, normal or full and have lengths of 383, 384
  236. or 385 days.  Thus, the six possible types are:
  237.  
  238.          /-----REGULAR-----\      /-----LEAP YEAR-----\ 
  239.  Month   DEF    NORM   FULL       DEF    NORM     FULL 
  240. =============================     ====================== 
  241. Tishri   30      30     30         30      30      30 
  242. Heshvan  29      29     30         29      29      30 
  243. Kislev   29      30     30         29      30      30 
  244. Tevet    29      29     29         29      29      29 
  245. Shevat   30      30     30         30      30      30 
  246. Adar (I) 29      29     29         30      30      30 
  247. Adar II  --      --     --         29      29      29 
  248. Nisan    30      30     30         30      30      30 
  249. Iyyar    29      29     29         29      29      29 
  250. Sivan    30      30     30         30      30      30 
  251. Tammuz   29      29     29         29      29      29 
  252. Av       30      30     30         30      30      30 
  253. Elul     29      29     29         29      29      29 
  254. TOTALS  353     354    355        383     384     385
  255.  
  256.     Notice that the period from Nisan 1 to Tishri 1 is always the same:
  257. 177 days, regardless of the type of year.
  258.  
  259.     By the application of certain rules discussed below it is possible
  260. to accommodate all the requirements of the Jewish calendar with a
  261. sequence of years having only these six lengths.  Note that in a regular
  262. year Adar may be called "Adar I" or simply "Adar" whereas in a leap year
  263. the two Adars are called "Adar I" and "Adar II".
  264.  
  265.     The process of establishing the calendar for a particular year
  266. consists of the following steps:
  267.  
  268.    a)  determine if the year is a leap year,
  269.    b)  find the day of the Molad (new moon) of Tishri for that year,
  270.    c)  adjust its Rosh Hashanah date according to the rules explained
  271.        below,
  272.    d)  similarly, determine the Rosh Hashanah date of the next year,
  273.    e)  determine the length of the year (and hence its type) to fill the
  274.           duration between the two Rosh Hashanah days.
  275.  
  276.     A set of rules has been established for determining how to position
  277. the day of Rosh Hashanah, given the day of the Molad.
  278.  
  279.     Determining if a year is a leap year is done by simply calculating
  280. its position in the 19-year cycle which began in the year 1.
  281.  
  282.     As was mentioned above, the duration between lunar cycles is 29
  283. days, 12 hours, 44 minutes and 3 1/3 seconds.  If the time of one Molad
  284. is known, the time of successive or previous ones can be determined by
  285. adding or subtracting multiples of this interval.  From this process it
  286. is calculated that the first new moon of the year 1 took place on Sunday
  287. evening at 11 minutes, 20 seconds after 11 pm.
  288.  
  289.     The time of the Tishri Molad for any year can be determined by
  290. performing the previous calculation.  But, since the lunar cycle repeats
  291. every 19 years, shortcuts can be taken.  For example, it is only
  292. necessary to add 2 days, 16 hours, 33 minutes and 3 1/3 seconds to a
  293. particular new moon to find the day of the new moon exactly one
  294. 19-year-cycle later.  Or 2 days, 23 hours, 5 minutes and 33 1/3 seconds
  295. have to be added to a particular new moon to find the new moon exactly
  296. 100 cycles (1900 years) later.
  297.  
  298.    Now the following rules are applied:
  299.  
  300.    Tishri 1 (Rosh Hashanah) will be on the day of the Molad except when
  301. falling into one of the four exceptions below (which is more often than
  302. not), in which case it is then delayed by one day.
  303.  
  304. Rule 1: When the new moon occurs on Wednesday, Friday, or Sunday, or   
  305.  
  306. Rule 2: When the new moon occurs at noon (18 hours after the start of the
  307. day at sunset) or later, or
  308.  
  309. Rule 3: When the new moon of an ordinary year occurs on Tuesday at 11
  310. minutes and 20 seconds after 3 am or later, or 
  311.  
  312. Rule 4: When, at the termination of a leap year, the new moon occurs on
  313. Monday at 32 minutes and 43 1/3 seconds after 9 am or later.
  314.  
  315.     When Rules 2, 3, or 4 apply, if delaying Rosh Hashanah by one day
  316. causes it to fall within Rule 1, it is delayed a second day.
  317.  
  318. EXPLANATION OF THE FOUR RULES
  319.  
  320.     The first rule causes the two holidays mentioned above to fall only
  321. on the permissible days.
  322.  
  323.     The second rule is an astronomical adjustment which considers the
  324. relationship between the observation of the new moon and the actual time
  325. of the lunar conjunction.  Since the moon is in conjunction with the sun
  326. when it is "new", its first crescent is most readily observed just after
  327. sunset on the evening of the conjunction, but the actual conjunction may
  328. have occurred many hours before.  The duration between the true
  329. conjunction and the observation of this first crescent is a complex
  330. calculation which takes into account the season, the lunar latitude and
  331. the geographical latitude and longitude of the place of observation.
  332. The second rule is an adjustment for the factors relating to the
  333. observation of the first crescent moon from the city of Jerusalem.
  334.  
  335.     The third rule accommodates the limitation imposed by having only
  336. the six possible year-lengths given above.  If the new moon occurred on
  337. the stated time (or later) the Rosh Hashanah new moon of the following
  338. year would occur on Saturday at noon (or later).  This can be seen by
  339. adding 4 days, 8 hours, 48 minutes and 40 seconds (the time that must be
  340. added to a new moon to find the new moon exactly 12 lunar months later)
  341. to 2 days, 3 hours, 11 minutes and 20 seconds.  This would call for the
  342. application of the first two rules and the postponement of the Rosh
  343. Hashanah from Saturday to Monday.  This, in turn, would require a year
  344. length of 356 days (50 weeks plus 6 days) which is not accommodated.  So
  345. the Rosh Hashanah is postponed to Thursday (Rule 1 applies) and the year
  346. is 354 days long.
  347.  
  348.     The fourth rule is also necessary to accommodate the year length
  349. limitations but occurs very infrequently.  If one subtracts the time
  350. necessary to calculate the new moon exactly 13 lunar months earlier (5
  351. days, 21 hours, 32 minutes and 43 1/3 seconds) one finds that the new
  352. moon at the start of the year occurred at 12 noon on Tuesday.  Under
  353. Rules 1 and 2 it would have been postponed until Thursday.  This, in
  354. turn, would have required a 382-day leap year (54 weeks plus 4 days)
  355. which is not accommodated.  So Rosh Hashanah is postponed to Tuesday
  356. and the year is 383 days long.
  357.  
  358. SELECTING THE YEAR TYPE
  359.  
  360.     At this point, the Rosh Hashanah day calculation is made for the
  361. next year.  The starting day and ending day of the year are then known
  362. as well as whether it must be a leap year.  The year type is chosen from
  363. the six possibilities according to the length required.  A simple way to
  364. chose the type is to use the table showing the number of days added from
  365. one New Year's Day to the next.
  366.  
  367.     Table 3 - Days Added to Year for Various Year Types
  368.         Year Type         Length    Days Added
  369.        ========================================
  370.           Deficient         353    3 days
  371.           Normal            354    4 days
  372.           Full              355    5 days
  373.           Deficient-Leap    383    5 days
  374.           Normal-Leap       384    6 days
  375.           Full-Leap         385    0 days
  376.  
  377.     The type is now easily determined by examining the day of the week
  378. on which the year begins and ends.  The application of Rules 3 and 4
  379. above have assured us that these are the only types necessary to
  380. accommodate all situations.  The year is now completely defined and the
  381. corresponding Gregorian dates must be found.
  382.  
  383. CORRELATION TO THE GREGORIAN CALENDAR
  384.  
  385.     The correlation to the Gregorian calendar is very unsophisticated.
  386. Simply stated: there is no direct relationship between the Jewish and
  387. Gregorian calendars.  They both are related to the solar cycle but
  388. according to totally different rules.  Every date, in the course of
  389. the 19-year cycle can fall within a range of thirty days.  The only way
  390. to determine corresponding Gregorian dates is to:
  391.  
  392. 1) Have a known correspondence as a reference point.  (Saturday, September
  393. 30, 1989, corresponds to Tishri 1, 5750.)
  394.  
  395. 2) Count how many days in one calendar system exist between the reference
  396. date and the desired date.
  397.  
  398. 3) Count the same number of days from the reference in the second calendar
  399. system.
  400.  
  401.    The calculations can take advantage of certain patterns to reduce
  402. their complexity.  Charts and tables have been drawn up to help or a
  403. computer can be programmed to do the calculations.
  404.  
  405.    It is interesting to note that the Christian holiday of Easter and all
  406. the holidays tied to it also retain a relation to the lunar cycle.  In the
  407. year 325, the date of Easter was set by the Council of Nicaea to be the
  408. first Sunday after the first full moon occurring on or after the vernal
  409. equinox.  Because the calculations of the full moon and vernal equinox were
  410. too complex, the calculation was simplified to assume that the vernal
  411. equinox is always on March 21.  Easter and Passover usually come within a
  412. week of each other, but in some Jewish leap years Passover occurs a whole
  413. month after Easter.
  414.  
  415. ANNIVERSARIES
  416.  
  417.    Anniversaries can present a special problem for the Jewish calendar
  418. because there are often days that occur in one year which are absent in
  419. another.  In the Gregorian calendar there is only one special case to con-
  420. sider, February 29th.  People born or married on that date can simply
  421. decide to celebrate on February 28th or March 1st for years that are not
  422. leap years.  But the Jewish calendar has an entire leap month as well as
  423. two months which can vary in length, so special rules have been establish-
  424. ed.  The anniversary of the death of a close relative (called a Yahrzeit)
  425. is of particularly importance and has unique rules associated with it.
  426.  
  427. 1) The anniversary of a date which was the 30th of Heshvan or Kislev in a
  428. year in which that month has 29 days is observed on the 1st of the next
  429. month.  There is an exception for the observance of a Yahrzeit, namely: if,
  430. in the first year after the death, the anniversary month has 29 days then
  431. the Yahrzeit is observed on the 29th of that month and continues to be
  432. observed on the 29th for all years in which the anniversary month has only
  433. 29 days.
  434.  
  435. 2) The anniversary of a date in Adar of an ordinary year is observed on
  436. the same date in Adar II of a leap year except for a Yahrzeit which is
  437. observed on the same date in Adar I of a leap year.
  438.  
  439. 3) The anniversary of a date in Adar I of a leap year is observed on the
  440. same date in Adar of an ordinary year.  If the original date was the 30th
  441. of Adar I of a leap year then, in an ordinary year, the anniversary is
  442. observed on the 1st of Nisan.  There is an exception for the observance of
  443. a Yahrzeit.  A Yahrzeit is observed on the 29th of Adar in an ordinary
  444. year.
  445.  
  446. 4) The anniversary of a date in Adar II is observed on the same date of
  447. Adar of an ordinary year.
  448.  
  449.  
  450.                         THE GREGORIAN CALENDAR
  451.                         ======================
  452.  
  453.     The calendar that we use today was first formulated in several
  454. inaccurate variations by the Romans.  By the time of Julius Caesar
  455. January was falling in autumn so he ordered Sosigenes to make reforms to
  456. the calendar.  He added 90 days to the year 46 B.C. to correct for the
  457. seasonal drift and adjusted the lengths of the months as we know them to
  458. be today.  He introduced the leap year by adding one day to February
  459. every four years.  The use of the leap year was an improvement but not
  460. entirely accurate.  The true solar year is 365 days, 5 hours, 48
  461. minutes, and 46 seconds.  One 366-day year every four years equates to
  462. an average year of 365 days, 6 hours.  Every four years an error of 44
  463. minutes, 56 seconds was added.
  464.  
  465.     By the 16th century the accumulated error was ten days.  Pope Gregory
  466. revised the calendar by suppressing the ten days between October 5th and
  467. October 15th of the year 1582 and ordained that years ending in hundreds
  468. should not be leap years unless they are divisible by 400. (1800 and
  469. 1900 were not leap years but 2000 is.)  This Gregorian calendar is the
  470. one we use today.
  471.  
  472.     Incidentally, the Gregorian reform compensates by 72 hours (3 days)
  473. every 400 years.  The actual excess accumulated is 74 hours, 53 minutes
  474. and 20 seconds.  The error of 2 hours, 53 minutes and 20 seconds every
  475. 400 years accumulates to one day in 3323 years.  Oh well, nobody's
  476. perfect.
  477.  
  478.                             WEEKLY READINGS
  479.                             ===============
  480.  
  481.     The five books of the Old Testament (Torah) are divided into 54 weekly
  482. portions which are read, one each Sabbath, throughout the year.  Only
  483. the last portion, Ve-Zot-ha-Berakhah, is not read on the Sabbath but on
  484. Simchat Torah.  The new cycle begins on the Sabbath after Simchat Torah.
  485. Each weekly portion has an accompanying reading from one of the Prophets
  486. (Haftarah).  These are all listed below.
  487.  
  488.  
  489.           Torah Reading                         Prophets
  490.  
  491. 1.   Bereshit, Gen 1:1-6:8                   Isa 42:5-43:11
  492. 2.   No'ah, Gen 6:9-11:32                    Isa 54:1-55:5
  493. 3.   Lekh Lekha, Gen 12:1-17:27              Isa 40:27-41:16
  494. 4.   Va-Yera, Gen 18:1-22:24                 II Kings 4:1-37
  495. 5.   Hayyei Sarah, Gen 23:1-25:18            I Kings 1:1-31
  496. 6.   Toledot, Gen 25:19-28:0                 Mal 1:1-2:7
  497. 7.   Va-Yeze, Gen 28:10-32:3                 Hos 12:13-14:10
  498. 8.   Va-Yishlah, Gen 32:4-36:43              Hos 11:7-12:12
  499. 9.   Va-Yeshev, Gen 37:1-40:23               Amos 2:6-3:8
  500. 10.  Mi-Kez, Gen 41:1-44:17                  I Kings 3:15-4:1
  501. 11.  Va-Yiggash, Gen 44:18-47:27             Ezek 37:15-28
  502. 12.  Va-Yehi, Gen 47:28-50:26                I Kings 2:1-12
  503. 13.  Shemot, Ex 1:1-6:1                      Isa 27:6-28:13, 29:22-23
  504. 14.  Va-Era, Ex 6:2-9:35                     Ezek 28:25-29:21
  505. 15.  Bo, Ex 10:1-13:16                       Jer 46:13-28
  506. 16.  Be-Shallah, Ex 13:17-17:16              Judge 4:4-5:31
  507. 17.  Yitro, Ex 18:1-20:23                    Isa 6:1-7:6,9:5
  508. 18.  Mishpatim, Ex 21:1-24:18                Jer 34:8-22, 33:25-26 
  509. 19.  Terumah, Ex 25:1-27:19                  I Kings 5:26-6:13
  510. 20.  Tezavveh, Ex 27:20-30:10                Ezek 43:10-27
  511. 21.  Ki Tissa, Ex 30:11-34:35                I Kings 18:1-39
  512. 22.  Va-Yakhel, Ex 35:1-38:20                I Kings 7:40-50
  513. 23.  Pekudei, Ex 38:21-40:38                 I Kings 7:51-8:21
  514. 24.  Va-Yikra, Lev 1:1-5:26                  Isa 43:21-44:23
  515. 25.  Zav, Lev 6:1-8:36                       Jer 7:21-8:3, 9:22-23 
  516. 26.  Shemini, Lev 9:1-11:47                  II Sam 6:1-7:17
  517. 27.  Tazri''a, Lev 12:1-13:59                II Kings 4:42-5:19 
  518. 28.  Mezora, Lev 14:1-15:23                  II Kings 7:3-20
  519. 29.  Aharei Mot, Lev 16:1-18:30              Ezek 22:1-19
  520. 30.  Kedoshim, Lev 19:1-20:27                Amos 9:7-15
  521. 31.  Emor, Lev 21:1-24:23                    Ezek 44:15-31
  522. 32.  Be-Har, Lev 25:1-26:2                   Jer 32:6-27
  523. 33.  Be-Hukkotai, Lev 26:3-27:34             Jer 16:19-17:14
  524. 34.  Be-Midbar, Num 1:1-4:20                 Hos 2:1-22
  525. 35.  Naso, Num 4:21-7:89                     Judge 13:2-25
  526. 36.  Be-Ha''alotkha, Num 8:1-12:16           Zech 2:14-4:7
  527. 37.  Shela Lekha, Num 13:1-15:41             Josh 2:1-24
  528. 38.  Korah, Num 16:1-18:32                   I Sam 11:14-12:22 
  529. 39.  Hukkat, Num 19:1-22:1                   Judge 11:1-33
  530. 40.  Balak, Num 22:2-25:9                    Micah 5:6-6:8
  531. 41.  Pinhas, Num 25:10-30:1                  I Kings 18:46-19:21 
  532. 42.  Mattot, Num 30:2-32:42                  Jer 1:1-2:3
  533. 43.  Masei, Num 33:1-36:13                   Jer 2:4-28, 3:4
  534. 44.  Devarim, Deut 1:1-3:22                  Isa 1:1-27
  535. 45.  Va-Ethannan, Deut 3:23-7:11             Isa 40:1-26
  536. 46.  Ekev, Deut 7:12-11:25                   Isa 49:14-51:3
  537. 47.  Re''eh, Deut 11:26-16:17                Isa 54:11-55:5
  538. 48.  Shofetim, Deut 16:18-21:9               Isa 51:12-52:12
  539. 49.  Ki Teze, Deut 21:10-25:19               Isa 54:1-10
  540. 50.  Ki Tavo, Deut 26:1-29:8                 Isa 60:1-22
  541. 51.  Nizzavim, Deut 29:9-30:20               Isa 61:10-63:9
  542. 52.  Va-Yelekh, Deut 31:1-30                 Isa 55:6-56:8 
  543. 53.  Ha''azinu, Deut 32:1-52                 II Sam 22:1-51
  544. 54.  Ve-Zot ha-Berakhah, Deut 33:1-34:12     Josh 1:1-18
  545.  
  546.     There are a sufficient number of portions to accommodate different
  547. readings on the longer years so it is necessary to double-up on some
  548. weeks in shorter years in order that all the portions be read.  Also,
  549. there are special readings that are substituted on the holidays.  These
  550. substitutions require a complex series of adjustments to be sure that
  551. all portions are read regardless of the year length.  Special Haftarah
  552. readings are said when celebrating a new moon.  To further complicate
  553. the matter, not all congregations observe the same rules.  JCAL shows
  554. the Torah and Haftarah reading that normally would apply to that week as
  555. well as the substitutions that are often made.
  556.  
  557.     Note that for any particular date JCAL shows the reading for the
  558. subsequent sabbath not for the weekday or holiday reading that may occur
  559. on that date.
  560.  
  561.     The user is CAUTIONED to check these readings inasmuch as there will be
  562. variations from congregation to congregation.
  563.  
  564.     Note, also, that if Tisha B'Av falls on the Sabbath it is advanced by
  565. one day or if Yom Haatzmaut falls on a Friday or Saturday it is celebrated
  566. on the previous Thursday.
  567.  
  568.                         SUNSET TIMES
  569.                         ============
  570.  
  571.     When Item 4 is selected from the menu the time of sunset is shown for
  572. the Gregorian date selected.  You can therefore calculate the time of
  573. sunset for any holiday as well as for the sabbath.  The time of sunset is
  574. used to determine the time of candlelighting.  It is customary to light
  575. candles on the Sabbath between 1 1/4 hours and 18 minutes before sunset.
  576. Since sunset varies according to one's location, it is necessary to tell
  577. the computer where you are.  The calculation is controlled by parameters
  578. in a file called JCAL.SUN.  It consists of five lines.  They must contain
  579. the following:
  580.  
  581. Line 1: City Name
  582. Line 2: Latitude (Latitudes south of the Equator are negative)
  583. Line 3: Longitude (East of Greenwich are negative)
  584. Line 4: Universal Time correction (zones east of Greenwich are negative)
  585. Line 5: Name of time zone
  586.  
  587.     All lines must be present.  Latitude and longitude are in degrees
  588. and minutes with a decimal point between them.  Thus 45 degrees, 37
  589. minutes is written 45.37
  590.  
  591.     Universal Time correction is according to the following table:
  592.  
  593.                 Standard    Daylight
  594. Eastern             5           4
  595. Central             6           5
  596. Mountain            7           6
  597. Pacific             8           7
  598.  
  599.  
  600.     Latitude and Longitude of common cities are as shown:
  601.  
  602.                 Latitude    Longitude
  603. New York        40.45       73.59
  604. Los Angeles     34.03       118.14
  605. Chicago         41.52       87.38
  606. Dallas          32.47       96.47
  607. Miami           25.46       80.11
  608. Montreal        45.30       73.33
  609. San Francisco   37.46      122.24
  610. Johannesburg   -26.10      -28.02   (time correction = -1.5)
  611. Jerusalem       31.47      -35.13   (time correction = -3)
  612.  
  613.     Coordinates for other cities can be found in an Almanac.
  614.  
  615.     If the file is found to be missing a default file is automatically
  616. created which looks like this:
  617.  
  618.  
  619. New York
  620. 40.45
  621. 73.59
  622. 5
  623. EST
  624.  
  625.  
  626.     New files can be created with any text file editor or the default file
  627. can be edited.  Its name must be JCAL.SUN.
  628.  
  629.  
  630.                         COMMAND LINE PARAMETERS
  631.                         =======================
  632.  
  633.     There are two command line parameters that can be used when starting the
  634. program.  The letter "n" will tell the program that there should be No
  635. opening screen and the letter "m" will start the program in a Monochrome
  636. mode.  The latter uses two intensities of white characters on a black
  637. background and may give a better appearance on monochrome or composite
  638. monitors.  Command line parameters can be entered in any order and can
  639. be upper or lower case.  They are separated by a space. For example: to
  640. start JCAL (version 7.5) in monochrome and without the opening screen
  641. enter "JCAL75 m n". Note that you will need about 140k of available
  642. memory to run JCAL with the text file resident (selection 7) and about
  643. 80k without the text file resident  You will be informed if the text
  644. file will not fit into memory.
  645.  
  646.  
  647.                             JCAL UTILITIES
  648.                             ==============
  649.  
  650.     JCAL is supplied with several utilities that can be used in
  651. conjunction with other software to convert between Gregorian and Jewish
  652. dates.  J2G.EXE (Jewish-to-Gregorian) converts Jewish dates to
  653. Gregorian, G2J.EXE (Gregorian-to-Jewish) converts Gregorian dates to
  654. Jewish and READINGS.EXE supplies the Torah readings for the Sabbath
  655. following the Jewish date entered. They accept their inputs as command
  656. line parameters and send their outputs to the screen or to a file by
  657. redirection.
  658.  
  659.     Other application software such as dBASE III can execute them as a
  660. DOS program using the RUN command.  Most programming languages have
  661. equivalent commands.  BASIC uses the SHELL command and Turbo Pascal uses
  662. the EXEC command.  dBase programmers, however, may want to use the
  663. binary files described later.
  664.  
  665. G2J.EXE
  666.  
  667.     This program is executed by entering the following command:
  668.  
  669.           G2J MM/DD/YYYY
  670.  
  671.     MM/DD/YYYY is the Gregorian date to be converted such as 7/30/1936.
  672. Month and Date can be single digits but the year must be four digits.
  673. The delimiter can be "/", "-", or "," .  Thus 1-1-1989 or 3,17,1918 are
  674. also acceptable inputs.
  675.  
  676.     The output is in the form MM/DD/YYYY.  Month and date may be single
  677. digits but the year is always four digits.  The months are given in
  678. numeric form as follows:
  679.  
  680.           Tishri    1
  681.           Heshvan   2
  682.           Kislev    3
  683.           Tevet     4
  684.           Shevat    5
  685.           Adar      6
  686.           Adar II   13 (when leap year);
  687.           Nisan     7
  688.           Iyyar     8
  689.           Sivan     9
  690.           Tammuz    10
  691.           Av        11
  692.           Elul      12
  693.  
  694.  
  695.     Assigning the number 13 instead of 7 to Adar II allows the
  696. subsequent months to retain their same numbers whether leap year or not.
  697. Thus Nisan is always month 7 and Elul is always month 12 making
  698. application programming and data entry easier.
  699.  
  700.      Examples:
  701.  
  702. G2J 7/28/1988   --  Sends 11/14/5748, the Jewish equivalent of
  703. July 28, 1988, to the screen.
  704.  
  705. G2J 4,20,1970 > DFP.DAT   --  Sends 7/14/5730, the Jewish
  706. equivalent of April 20, 1970, to a file called DFP.DAT.
  707.  
  708.     There is a special command line parameter, "T" or "t", for
  709. converting Today's date to the Jewish equivalent.  Today's date is read
  710. from the computer's calendar and assumes it is correctly set. This
  711. output is formatted in a more readable form.  Thus if today is July 30,
  712. 1988:
  713.  
  714. G2J T   -  Sends "Sat, Av 16, 5748" to the screen.
  715.  
  716.     This command can be added to your AUTOEXEC.BAT file so the current
  717. Jewish date will be shown on the screen whenever you power up your
  718. computer.  G2J must be accessible to the AUTOEXEC.BAT file.
  719.  
  720.     Using "TB" will give a "brief" output in the form of MM/DD/YYYY
  721. which is less readable but is convenient for piping into READINGS.EXE as
  722. described below.
  723.  
  724. Example: G2J TB  -  Sends 11/16/5748 to the screen if today is July
  725. 30, 1988.
  726.  
  727. J2G.EXE
  728.  
  729.     This program is executed by entering the following command:
  730.  
  731.           J2G MM/DD/YYYY S
  732.  
  733.     MM/DD/YYYY is the Jewish date to be converted such as 11/15/5748.
  734. Month and Date can be single digits but the year must be four digits.
  735. The date delimiter can be "/", "-", or "," .
  736.  
  737.     S is the number of successive years.  It can be any size but the
  738. larger the number the longer the computation time.  S is optional and
  739. defaults to 1 if not used.  The outputting of successive years is
  740. particularly useful when calculating anniversaries and Yahrzeits for
  741. several years ahead.
  742.  
  743.  
  744.     The output is in the form MM/DD/YYYY.  Here, too, month and date may
  745. be single digits but the year is always four digits.  The months are
  746. given in numeric form as described above.  Remember that "13" is used to
  747. designate the leap year month of Adar II.
  748.  
  749.      Examples:
  750.  
  751. J2G 11/16/5748  --  Sends 7/30/1988 to the screen.
  752.  
  753. J2G 7/14/5730  20 > OUTFILE.DAT  --  Sends 20 successive Gregorian
  754. dates starting with 4/20/1970 to a file named OUTFILE.DAT.
  755.  
  756. READINGS
  757.  
  758.     This program takes the Jewish date entered at the command line and
  759. outputs the Torah reading for the Sabbath following that date.  If no
  760. command line parameter is entered, the program waits for a date to be
  761. entered on the next line.  NOTE THAT NO PROMPT IS SUPPLIED.  This is
  762. done so that the output is only the Torah reading which can be
  763. redirected to another file without clutter.
  764.  
  765.     Examples:
  766.  
  767. READINGS 11/11/5709 > BAR  --  Sends "Va-Ethannan, Deut 3:23 -7:11"
  768. to a file called BAR.
  769.  
  770.     The ability of this program to accept input on a separate line
  771. without command line parameters makes it particularly easy to have its
  772. input supplied by piping it from G2J as illustrated below.
  773.  
  774. G2J 8/6/1949 | READINGS will output the same "Va-Ethannan, Deut 3:23 - 7:11"
  775. to the screen.
  776.  
  777.     If you place the following lines in  your AUTOEXEC.BAT file you will
  778. see the date and the Torah reading displayed each time you boot up your
  779. computer:
  780.  
  781. G2J T
  782. G2J TB | READINGS
  783.  
  784.  
  785. dBASE Interface
  786.  
  787.     Two binary files J2GBIN.BIN and G2JBIN.BIN are also included.  These
  788. can be LOADed and CALLed by a dBase program and are much faster than
  789. using the RUN command.  They both require that a single date string be
  790. passed to it in the form MM/DD/YYYY.  The converted date is returned in
  791. the same string variable.  The variable MUST be padded to have a length
  792. of ten characters.  A small demonstration is included to show the
  793. programmer how to use them.  There are two additional files associated
  794. with the demo: JDB.PRG, JDB.DBF.  Run JDB.PRG under dBASE III and study
  795. the code carefully to integrate the utilities into your application.
  796.  
  797.  
  798.                             SHAREWARE
  799.                             =========
  800.  
  801.     Rather than marketing these programs I am distributing them as
  802. Shareware.  Try the programs at no charge.  They are not copy protected
  803. and you may distribute them freely to others.  If you find them useful
  804. and continue to use them you must pay the $18 registration fee.  Send
  805. the registration fee along with the program revision number (from the
  806. opening screen) to:
  807.  
  808. Lester Penner
  809. 25 Shadow Lane
  810. Great Neck, NY 11021
  811. (H) 516 466-5574
  812. (W) 516 273-3100
  813.  
  814.     Please send only US currency; no Canadian checks.
  815.  
  816.     You may send information about bugs to the same address or to Compuserve
  817. 75236,1572.
  818.  
  819. Enjoy,
  820. Les
  821.